import { createSlice } from '@reduxjs/toolkit'
const initialState = {
    weather:null
}
export const weatherSlice = createSlice({
    name:'weather',
    initialState ,
    reducers:{
        changeWeather:(state,action) => {
           state.weather = action.payload
        },
    }
})
export const { changeWeather} = weatherSlice.actions
export default weatherSlice.reducer

